﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace CSharpDay11__Entity_Framework_.Models
{
    public class Artwork
    {
        public int Id { get; set; }
        [Required]
        public string Title { get; set; }
        [Range(1, 10)]
        public int AwesomenessScale { get; set; }
        [Range(0.01, Double.MaxValue)]
        public double Worth { get; set; }
        [Required]
        public string ImageUrl { get; set; }
        public DateTime? DateDeleted { get; set; }

        //Sets up a one to many with Artist
        public int ArtistId { get; set; }
        public virtual Artist Artist { get; set; }
    }
}